<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page pageEncoding="utf-8"%>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Cache-Control" content="no-cache"/>
		<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=2.0"/>
	    <title>手机环球网_${zhuanti.name}</title>
	    <link rel="stylesheet" href="wap2/css/style.css" type="text/css" />
	</head>
	<body>
		<div class="main">
			<%@ include file="top.jsp"%>
			<!--
			导航条
			-->
			<div class="nav">
				<a href="zt.html">专题</a>&gt;${zhuanti.name}
			</div>
			<!--
			专题横幅
			-->
			<div>
				<img src="http://wapimg1.huanqiu.com${zhuanti.bannerImgPath}" alt="${zhuanti.name}" style="width:100%;height:150px;"/>
			</div>
			<!--
			专题介绍
			-->
			<div>
				${zhuanti.intro}
			</div>
			<!--
			碎片版块
			-->
			<c:forEach var="block" items="${blockList}" varStatus="id">
				<c:choose>
					<c:when test="${block.blockType==2}">
						<!--
						最新消息
						-->
						<div class="lanmu-line">
							${block.name}
						</div>
						<div  class="block">
							<c:forEach var="zhuantinews" items="${block.zhuantiNewsList}">
								<p>
									<a href="view.html?id=${zhuantinews.news.id}">${zhuantinews.news.shortTitle}</a>
								</p>
							</c:forEach>
							<p>
								${block.pagenation.showWapPage}
							</p>
						</div>
					</c:when>
					<c:otherwise>
						<div class="lanmu-line">
							${block.name}
						</div>
						<div class="block-content">
							${block.data}
						</div>
					</c:otherwise>
				</c:choose>
			</c:forEach>
			<!--
				评论
			-->
			<c:if test="${zhuanti.canComment==true}">
				<div class="lanmu-line">
					<a href="#">[网友评论]</a>
				</div>
				<div style="padding:5px;">
					<c:forEach var="comment" items="${zhuanti.commentList}" varStatus="idx">
						<p>${zhuanti.commentCount-idx.index}楼 : ${comment.cont2}[<fmt:formatDate value="${comment.savetime}"
							pattern="MM-dd HH:mm" type="both" />]
							<c:if test="${!empty comment.browser}">来自${comment.browser}浏览器</c:if>	
						</p>
					</c:forEach>
				</div>
				<div>
					<p><a href="ztcomment.html?act=more&id=${zhuanti.id}">&gt;&gt;全部评论</a></p>
				</div>
				<div class="search">
					<form action="ztcomment.html" method="post">
						<p>
						<input type="hidden" name="act" value="comment"/>
						<input type="hidden" name="id" value="${zhuanti.id}"/>
						<input type="text" name="cont" value="" class="searchKey"/>
						<input type="submit" value="发言(70字)" class="searchBtn"/>
						</p>
					</form>
				</div>
			</c:if>
			<%@ include file="foot.jsp"%>
			<div>
				<img src="http://113.31.27.131:8084/admin/dc.jsp?act=11&v=xhtml&ztid=${id}&qd=${qd}" alt="" width="0" height="0"/>
			</div>
		</div>
	</body>
</html>
